<extend name="Base/common" />
<block name="body">
    <style type="text/css">
        .money {
            width: 50px;
        }
        .specTable .param {
            display: none;
        }
        .specTable p {
            display: block;
            line-height: 50px;
        }
        .text-center {
            text-align: center;
        }
        .check-tips {
            color: #aaa;
            margin-left:2px;
        }
        .cf{
            margin-left:20px;
        }
    </style>
    <!-- 标签页导航 -->
    <div class="span9 page_message">
        <section id="contents">
            <ul class="tab-nav nav">
                <li class="current"><a href="{:U('import', array('id'=>I('request.id')))}">中心城区高中情况数据导入<b class="arrow fa fa-sort"></b></a></li>

            </ul>
            <div class="tab-content">
                <!-- 表单 -->
                <form id="form" action="{:U('import?model='.$model['id'])}" method="post" class="form-horizontal">
                    <div class="form-item cf">
                        <label class="item-label"><span class="need_flag">*</span>数据报表有效年份<span class="check-tips"></span></label>
                        <div class="controls">
                            <input id = 'date_year' name="reportdate" class="text input-large" placeholder="请输入xxxx年" />
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label"><span class="need_flag">*</span>中心城区高中情况Excel文件上传<span class="check-tips">请选择符合格式的.xls或.xlsx文件</span></label>
                        <div class="controls upload_file" rel="file" data-max="1" title="点击上传文件">
                            <input type="file" id="upload_file_file">
                            <input type="hidden" name="file" value="{$data.file}"/>
                            <div class="upload-img-box"><present name="data[$field['name']]">
                                <div class="upload-pre-file"><span class="upload_icon_all"></span>{$data[$field['name']]|get_table_field=###,'id','name','File'}</div>
                            </present>
                            </div>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label"><span class="need_flag">*</span>描述<span class="check-tips">导入数据说明，控制在100汉字以内</span></label>
                        <div class="controls">
                            <label class="textarea input-large">
                                <textarea class="text input-large" name="comment" >{$data.comment}</textarea>
                            </label>
                        </div>
                    </div>

                    <div class="form-item form_bh">
                        <input type="hidden" name="id" value="{$data.id}">
                        <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                    </div>
                </form>
            </div>
        </section>
    </div>
    </div>
</block>
<block name="script">
    <link href="__STATIC__/datetimepicker/css/datetimepicker.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
    <php> if(C('COLOR_STYLE')=='blue_color') echo '
        <link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
        '; </php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js?v={:SITE_VERSION}" charset="UTF-8"></script>
    <script type="text/javascript">

        $(function(){
            initUploadFile();

            $('.time').datetimepicker({
                format: 'yyyy-mm-dd hh:ii',
                language:"zh-CN",
                minView:0,
                autoclose:true
            });
            $('.date').datetimepicker({
                format: 'yyyy-mm-dd',
                language:"zh-CN",
                minView:2,
                autoclose:true
            });
            showTab();
            //hide_move();

            $('.select_type').each(function(){ select_type(this); });
            $('.select_type').change(function(){ alert("1");select_type(this); });
            /*
             $('#submit').click(function(){
             alert("submit click");
             $('#form').submit();
             });*/
        });

    </script>
</block>
